/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package gizmo;

/**
 *
 * @author steven
 */
public class NewClass {

    //pruebas
    
    static public void main(String args[]) {
    String fuente="";
    
    fuente ="http://farm1.static.flickr.com/225/489966119_0b7d06492f_b.jpg";
    Image i=new Image(fuente);
    String x=i.colors;


    fuente ="D:/S.png";
    Image j=new Image(fuente);
    String y=j.colors;

    String [] r=(x.split(";"))[0].split("-");
    String [] g=(x.split(";"))[1].split("-");
    String [] b=(x.split(";"))[2].split("-");

    String [] rr=(y.split(";"))[0].split("-");
    String [] gg=(y.split(";"))[1].split("-");
    String [] bb=(y.split(";"))[2].split("-");

    System.out.println(i.near(r, rr));
    System.out.println(i.near(g, gg));
    System.out.println(i.near(b, bb));

    if(i.near(r, rr) && i.near(g, gg) && i.near(b, bb)){System.out.println("xD");}

  }

}
